home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat3
/
ferror.0
< prev
next >
Wrap
Text File
|
1996-09-02
|
2KB
|
49 lines
FERROR(3) UNIX Programmer's Manual FERROR(3)
NNAAMMEE
cclleeaarreerrrr, ffeeooff, ffeerrrroorr, ffiilleennoo - check and reset stream status
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddiioo..hh>>
_v_o_i_d
cclleeaarreerrrr(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffeeooff(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffeerrrroorr(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffiilleennoo(_F_I_L_E _*_s_t_r_e_a_m)
DDEESSCCRRIIPPTTIIOONN
The function cclleeaarreerrrr() clears the end-of-file and error indicators for
the stream pointed to by _s_t_r_e_a_m.
The function ffeeooff() tests the end-of-file indicator for the stream point-
ed to by _s_t_r_e_a_m, returning non-zero if it is set. The end-of-file indi-
cator can only be cleared by the function cclleeaarreerrrr().
The function ffeerrrroorr() tests the error indicator for the stream pointed to
by _s_t_r_e_a_m, returning non-zero if it is set. The error indicator can only
be reset by the cclleeaarreerrrr() function.
The function ffiilleennoo() examines the argument _s_t_r_e_a_m and returns its inte-
ger descriptor.
EERRRROORRSS
These functions should not fail and do not set the external variable
_e_r_r_n_o.
SSEEEE AALLSSOO
open(2), stdio(3)
SSTTAANNDDAARRDDSS
The functions cclleeaarreerrrr(), ffeeooff(), and ffeerrrroorr() conform to ANSI
C3.159-1989 (``ANSI C''). The function ffiilleennoo() conforms to .
BSD Experimental April 19, 1994 1